package com.th.supcom.pds.impl.manager.impl;

import java.util.List;
import java.util.Map;

import net.carefx.fc.framework.db.manager.GetSequenceHelper;

import org.apache.ibatis.session.RowBounds;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.th.supcom.pds.domain.pojo.PhamAttributeInfo;
import com.th.supcom.pds.impl.dao.PhamAttributeInfoMapper;
import com.th.supcom.pds.impl.manager.PhamAttributeInfoManager;

/**
 * PhamAttributeInfo 管理接口实现.
 *
 * 药品属性信息表.  
 */
public class PhamAttributeInfoManagerImpl implements PhamAttributeInfoManager
{   
    public static final String TAB_PHAM_ATTRIBUTE_INFO = "PHAM_ATTRIBUTE_INFO";
    
    private PhamAttributeInfoMapper m_phamAttributeInfoMapper;
    
    /**序列生成器.*/
    private GetSequenceHelper m_getSequenceHelper;
    
    /**
     * 默认的构造函数.
     */ 
    public PhamAttributeInfoManagerImpl ()
    {
    	
    }

    /**
     * 获取PhamAttributeInfoMapper.
     *
     * @return PhamAttributeInfoMapper.
     */
    public PhamAttributeInfoMapper getPhamAttributeInfoMapper ()
    {
        return m_phamAttributeInfoMapper;
    }
     
    /**
     * 注入PhamAttributeInfoMapper.
     * 
     * @param phamAttributeInfoMapper set phamAttributeInfoMapper.
     */
    public void setPhamAttributeInfoMapper (PhamAttributeInfoMapper phamAttributeInfoMapper)
    {
        m_phamAttributeInfoMapper = phamAttributeInfoMapper;
    }
    
    /**
     * 获取序列.
     *
     * @return GetSequenceHelper
     */
    public GetSequenceHelper getGetSequenceHelper ()
    {
        return m_getSequenceHelper;
    }

    /**
     * 注入序列.
     *
     * @param getSequenceHelper getSequenceHelper.
     */
    public void setGetSequenceHelper (GetSequenceHelper getSequenceHelper)
    {
        m_getSequenceHelper = getSequenceHelper;
    }
   
    @Override
    public PhamAttributeInfo getPhamAttributeInfoByID (Long id)
    {
        return m_phamAttributeInfoMapper.getPhamAttributeInfoByID(id);
    }
    
    @Override
    public Long getPhamAttributeInfoSeq ()
    {
        return m_getSequenceHelper.getNextSequenceId (TAB_PHAM_ATTRIBUTE_INFO);
    }
        
    @Override
    public List<PhamAttributeInfo> findPhamAttributeInfoListByExample (PhamAttributeInfo phamAttributeInfo)
    {
        return m_phamAttributeInfoMapper.findPhamAttributeInfoListByExample(phamAttributeInfo);
    }
    
    @Override
    public int findPhamAttributeInfoCountByExample(PhamAttributeInfo phamAttributeInfo)
    {
        return m_phamAttributeInfoMapper.findPhamAttributeInfoCountByExample(phamAttributeInfo);
    }
    
    @Override
    public List <PhamAttributeInfo> findPhamAttributeInfoListByMap (Map <String, Object> params)
    {
        return m_phamAttributeInfoMapper.findPhamAttributeInfoListByMap(params);
    }
    
    @Override
    public List <PhamAttributeInfo> findPhamAttributeInfoPagingByMap (Map <String, Object> params, Integer offset, Integer limit)
    {
        return m_phamAttributeInfoMapper.findPhamAttributeInfoPagingByMap(new RowBounds (offset, limit), params);
    }
    
    @Override
    public Integer findPhamAttributeInfoCountByMap (Map <String, Object> params)
    {
        return m_phamAttributeInfoMapper.findPhamAttributeInfoCountByMap (params);
    }
    
    @Override
    public int modifyPhamAttributeInfo(PhamAttributeInfo phamAttributeInfo)
    {
        return m_phamAttributeInfoMapper.modifyPhamAttributeInfo(phamAttributeInfo);
    }
    
    @Override
    public int modifyPhamAttributeInfoByExample(PhamAttributeInfo phamAttributeInfo)
    {
        return m_phamAttributeInfoMapper.modifyPhamAttributeInfoByExample(phamAttributeInfo);
    }
      
    @Override
    public int removePhamAttributeInfoByID (Long id)
    {
        return m_phamAttributeInfoMapper.removePhamAttributeInfoByID (id);
    }
    
    @Override
    public int removePhamAttributeInfoByMap (Map <String, Object> params)
    {
        return m_phamAttributeInfoMapper.removePhamAttributeInfoByMap (params);
    }
    
    @Override
    public void addPhamAttributeInfo(PhamAttributeInfo phamAttributeInfo)
    {
        m_phamAttributeInfoMapper.addPhamAttributeInfo(phamAttributeInfo);
    }
    
	/** 日志记录器. */
    public static final Logger s_logger = LoggerFactory.getLogger (PhamAttributeInfoManagerImpl.class);
    
    /** 公司版权信息. */
    public static final String copyright = "Copyright 2015, TH Supcom Corporation";
    
    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";
    
    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";
    
    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";
    
    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
}